package com.king.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: Configuration
 * @Description: 存放SQLConfig解析内容
 * @Author: wangchangyong
 * @Date: 2020/3/26 17:58
 * @Version: 1.0.0
 **/
public class Configuration {

    // 数据源
    private DataSource dataSource;

    /**
     * key = statementId
     * value = MapperStatement对象
     */
    Map<String, MapperStatement> mapperStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getMapperStatementMap() {
        return mapperStatementMap;
    }

    public void setMapperStatementMap(Map<String, MapperStatement> mapperStatementMap) {
        this.mapperStatementMap = mapperStatementMap;
    }
}
